package org.example.service.impl;

import org.example.service.Userservice;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class Userserviceimpl1 implements InvocationHandler {

     Object  zs;
     public Userserviceimpl1(Object zs) {
         this.zs = zs;
     }
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        System.out.println("日志开始");
        Object invoke = method.invoke(zs, args);
        System.out.println("日志结束");
        return invoke;
    }
}
